<?php
// vim: set ts=4 sw=4 sts=4 et:

/**
 * LiteCommerce
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to licensing@litecommerce.com so we can send you a copy immediately.
 *
 * PHP version 5.3.0
 *
 * @category  LiteCommerce
 * @author    Creative Development LLC <info@cdev.ru>
 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 * @link      http://www.litecommerce.com/
 * @see       ____file_see____
 * @since     1.0.0
 */

namespace XLite\Model;

/**
 * Product multilingual data
 *
 * @see   ____class_see____
 * @since 1.0.0
 *
 * @Entity
 *
 * @Table (name="product_translations",
 *         indexes={
 *              @Index (name="ci", columns={"code","id"}),
 *              @Index (name="id", columns={"id"}),
 *              @index (name="name", columns={"name"})
 *         }
 * )
 */
class ProductTranslation extends \XLite\Model\Base\Translation
{
    /**
     * Product name
     *
     * @var   string
     * @see   ____var_see____
     * @since 1.0.0
     *
     * @Column (type="string", length="255")
     */
    protected $name;

    /**
     * Product description
     *
     * @var   string
     * @see   ____var_see____
     * @since 1.0.0
     *
     * @Column (type="text")
     */
    protected $description = '';

    /**
     * Product brief description
     *
     * @var   string
     * @see   ____var_see____
     * @since 1.0.0
     *
     * @Column (type="text")
     */
    protected $brief_description = '';

    /**
     * Meta tags
     *
     * @var   string
     * @see   ____var_see____
     * @since 1.0.0
     *
     * @Column (type="string", length="255")
     */
    protected $meta_tags = '';

    /**
     * Product meta description
     *
     * @var   string
     * @see   ____var_see____
     * @since 1.0.0
     *
     * @Column (type="text")
     */
    protected $meta_desc = '';

    /**
     * Meta title
     *
     * @var   string
     * @see   ____var_see____
     * @since 1.0.0
     *
     * @Column (type="string", length="255")
     */
    protected $meta_title = '';
    /**
     * Translation owner (relation). AUTOGENERATED
     *
     * @var    XLite\Model\Product
     * @access protected
     *
     * @ManyToOne  (targetEntity="XLite\Model\Product", inversedBy="translations")
     * @JoinColumn (name="id", referencedColumnName="product_id")
     */
    protected $owner;

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string $name
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set description
     *
     * @param text $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * Get description
     *
     * @return text $description
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set brief_description
     *
     * @param text $briefDescription
     */
    public function setBriefDescription($briefDescription)
    {
        $this->brief_description = $briefDescription;
    }

    /**
     * Get brief_description
     *
     * @return text $briefDescription
     */
    public function getBriefDescription()
    {
        return $this->brief_description;
    }

    /**
     * Set meta_tags
     *
     * @param string $metaTags
     */
    public function setMetaTags($metaTags)
    {
        $this->meta_tags = $metaTags;
    }

    /**
     * Get meta_tags
     *
     * @return string $metaTags
     */
    public function getMetaTags()
    {
        return $this->meta_tags;
    }

    /**
     * Set meta_desc
     *
     * @param text $metaDesc
     */
    public function setMetaDesc($metaDesc)
    {
        $this->meta_desc = $metaDesc;
    }

    /**
     * Get meta_desc
     *
     * @return text $metaDesc
     */
    public function getMetaDesc()
    {
        return $this->meta_desc;
    }

    /**
     * Set meta_title
     *
     * @param string $metaTitle
     */
    public function setMetaTitle($metaTitle)
    {
        $this->meta_title = $metaTitle;
    }

    /**
     * Get meta_title
     *
     * @return string $metaTitle
     */
    public function getMetaTitle()
    {
        return $this->meta_title;
    }

    /**
     * Get label_id
     *
     * @return integer $labelId
     */
    public function getLabelId()
    {
        return $this->label_id;
    }

    /**
     * Set code
     *
     * @param fixedstring $code
     */
    public function setCode($code)
    {
        $this->code = $code;
    }

    /**
     * Get code
     *
     * @return fixedstring $code
     */
    public function getCode()
    {
        return $this->code;
    }
}